package com.example.demo.config;

import org.springframework.context.annotation.Configuration;

@Configuration("config")//加上参数相当于给对象重命名
public class UserConfig {
    public void sayHi() {
        System.out.println("hi,UserConfig");
    }
}
